﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using StarClub.BLL;

namespace StarClub.Web.Admin
{
    public partial class ChangePassWord : StarClub.BLL.PageBase.MustLoginPageBase
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            PassWordManage pwm = new PassWordManage();
            string msg = string.Empty;
            if (!pwm.ChangePassWord(UserInfo.UID, txbOldPwd.Text.Trim(), txbNewPwd.Text.Trim(), txbNewPwdRe.Text.Trim(), out msg))
            {
                Common.MessageBox.Show(Page, msg);
                return;
            }
            Common.MessageBox.Show(Page, "修改成功");
        }
    }
}
